Questions tagged [multi-level]
The multi-level tag has no usage guidance.
521
questions
0
votes
0
answers
10
views
Issue with inputting standardised variables into LASSO due to data loss
The aim of my study is to understand which demographic and behavioural characteristics are associated with an improvement in function over time. My data includes 15 dependent variables and 2 ...
0
votes
0
answers
19
views
Dependency Injection in a multi layer python application
I am creating my first multilayer Python application where Dependency Injection is not yet fully clear to me. I tried to illustrate a simplified structure. The manager classes interact with the other ...
0
votes
2
answers
16
views
pandas average multi level columns
I have a pandas table with multi level columns:
How can I average the columns with same level 0 name ?
so basically all columns(could be more than 2) under g1 will be averaged to one column for each ...
0
votes
1
answer
19
views
metafor forest plot aggregated values
First time posting.
I've run a multi-level m-a in metafor, and like Wolfgang's idea of creating a forest plot to show an aggregate effect size for each study (so, say, an m-a of 100 studies, some of ...
0
votes
1
answer
53
views
Wavelet Multilevel - Different Mother Wavelets
I have an important question. I'm using a wavelet multilevel transform using the wavedec (pywt on python), but I need to change the mother wavelet on each level. It's possible to perform it?
def ...
0
votes
0
answers
12
views
Multilevel model with unbalanced design and within-between variation - Coding using lme4/simr for power in R
I am working on modeling a multilevel model in R in order to run a power simulation. Although there are many questions (and responses) on issues with multi-level models, it seems like none of them ...
0
votes
1
answer
68
views
Multi-level hierarchy data display in SQL Server Management Studio
I want to fetch a multi-level hierarchy in a sequential manner. I have a table BOMHierarchy in which I have this sample data:
Parent
Child
Parent1
Child1
Parent1
child2
Child1
Child3
Child1
...
0
votes
0
answers
25
views
Mediation Analysis Diary Study
I did a diary study.
It was 5 days, 2 times a day (morning and afternoon).
Morning measures I have:
sleeping problems
Afternoon measures I have:
Emotions
Incivility
I want to test a mediation. First I ...
0
votes
0
answers
28
views
Python DataFrame: How to write and read multiple tickers time-series dataframe?
This seems a fairly complicated dataframe using a simple download. After saving to file (to_csv), I can't seem to read it properly (read_csv) back into a dataframe as before. Please help.
import ...
1
vote
2
answers
68
views
How to add computed columns in a multi-level column dataframe
I have a multi-level column dataframe on the lines of one below:
How can I add columns 'Sales' = 'Qty' * 'Price' one each for each 'Year'?
The input dataframe in dictionary format:
{('Qty', 2001): [...
1
vote
1
answer
126
views
Multi Level Menu Navbar using Bootstrap 5
I have a problem with a multi-level menu using bootstrap 5, here I have created a multi-level menu but when I run it the menu doesn't appear sideways and instead appears directly under the previous ...
1
vote
1
answer
25
views
Looking at results by group in multilevel structural equation model using lavaan
I'm trying to do a multilevel structural equation model using a data set with observations from 32 different countries. I cluster the model by country. The model runs but on the output it says there ...
0
votes
1
answer
37
views
Cannot fit multilevel ordinal logit model using clmm
I'm trying to fit a multilevel (random effects) ordered logit model using the ordinal package, but I keep running into this error:
Error in region:country1 : NA/NaN argument
Here's my simplified ...
1
vote
1
answer
29
views
(SPSS) Assign values to remaining time point based on value on another variable, and looping for each case
I am currently working on analyzing a within-subject dataset with 8 time-ordered assessment points for each subject.
The variables of interest in this example is ID, time point, and accident.
I want ...
0
votes
1
answer
31
views
Visualising a mixed effects model
So as the title suggests I would like to visualise these two models that I have in order to better understand their relationship. The first one is a fixed slope model and the second one is a random ...
1
vote
1
answer
45
views
Creating a multilevel dataframe by clubbing columns with the same name under top level
Consider the following input dataframe:
index | col_1 | col_2 |
1 | 1234 | 4567 |
...
0
votes
2
answers
53
views
How to transform one row of a multilevel column dataframe into a regular dataframe?
I have the following dataframe (constructed as below):
import pandas as pd
df = pd.DataFrame(data=None,columns=pd.MultiIndex.from_product([['Apple','Banana','Orange'],['Data1','Data2','Data3']]),...
-1
votes
1
answer
33
views
transform multiindex column dataframe to long table
I have the below Excel table that I would like to transform into something that is easier to analyze. I struggle how to use python to transform this into the desired format.
Original Excel table
The ...
0
votes
0
answers
334
views
pyTelegramBotAPI.How to edit/delete message with inline buttons only if message from the same step was already in chat?
I want my TG bot to have inlinebuttons with categories and subcategories in chat with dynamic change.
But how to send message with subcategories if it doesnt exist and edit message with subcategories ...
1
vote
0
answers
29
views
Is size of page table the same for every process?
I am learning about virtual memory and paging. Every process has a page table but is the size of every page table the same? Where can I find information about them?
I think they are the same. In ...
0
votes
1
answer
50
views
Construct a HTML table with irregular Multilavel Header
I would like to construct a table as follows:
| Major Heading 1 | Major Heading 2 | Major Heading 3 | Major Heading 4 |
| | Minor1 | Minor2 | Minor1 | Minor2 | ...
2
votes
1
answer
86
views
Plotting multiple probabilities of an logistic multilevel model
I need to estimate and plot a logistic multilevel model. I've got the binary dependent variable employment status (empl) (0 = unemployed; 1 = employed) and level of internet connectivity (isoc) as (...
0
votes
0
answers
88
views
Moderation on each level in n-level multilevel model
I have a question with regard to moderation in an n-level multilevel analysis in R (lmer), where two (interacting) predictor variables and one dependent variable are assessed at each level, and ...
0
votes
1
answer
183
views
Angular routing: 3 level hierarchy - parent child child
App component (router-outlet)
Parent 1 ---- Level 1
Child 1 ---- Level 2
Child 1 ---- Level 3
Child 2 ---- Level 3
Child 3 ---- Level 3
This is the scenario for the nested routing in my angular ...
0
votes
1
answer
12
views
Function to decide difficulty level is storing the wrong values and giving unwanted output [duplicate]
I am writing a code for guess the number game. Planning to use a function to decide the difficulty level. Game has two levels, I thought it would be a good idea if the program doesn't end if the user ...
0
votes
1
answer
42
views
EXCEL 365 - Trouble getting a 4-level dropdown menu to display DATA based on other criteria
Using UNIQUE and FILTER Functions along with DATA Validation, I'm trying to create a room finder using multi-level dependent DropDown lists in EXCEL 365.
The list where the DATA is being pulled is ...
0
votes
1
answer
119
views
Paging--What happens when page tables do not fit perfectly in a page in Multilevel Paging?
In a 3-level paging system, when every page size is 512 bytes and an entry size is 4 bytes, we can know that every single page has 128 entries. So we can design 7 bits (log128) of the VPN(Virtual Page ...
0
votes
1
answer
655
views
I have a multi level sidebar navigation menu but would like to keep one button active at a time since they menus overlap each other
menu overlays
I would like the submenu disappear when I click outside of it.
just one menu at a time.
One menu open
my js code:
function myfunc() {
document.getElementById("myDropdown&...
0
votes
0
answers
11
views
Multi-level Model in R missing one predictor [duplicate]
This is the R code I used for my model:
M4 <- lmer(Average ~ Region + (1|Participant),data=Theta)
tab_model(M4,show.se=T,digits = 4,
title="Table: Model for the Relationship of ...
3
votes
2
answers
114
views
Convert nested dictionary to multilevel column dataframe
I have a dictionary which I want to convert to multilevel column dataframe and the index will be the most outer keys of the dictionary.
my_dict = {'key1': {'sub-key1': {'sub-sub-key1':'a','sub-sub-...
0
votes
0
answers
34
views
Descriptives for Multilevel Model
I have shown people vignettes with multiple dimensions and the task to say how much they agree/approove with the scenario shown in the vignette on a Likert Scale. Here is an example from another study:...
-1
votes
1
answer
150
views
Get current slug RouteName in Laravel
I want to change side bar menu to make it open and active when it requested. Here is my code:
<li class="nav-item has-treeview {{Request::is('backend/*') ? 'menu-open':''}}">
<...
1
vote
1
answer
71
views
Concatenate level label R
I have a dataset with this shape
# TEST
dt <- data.table("Level" = c( 2, 3, 5,5,6,6,4,4,3,5,6,6,6,5,6,7),
"Code.1"=c("01","0101","0101 21 00",&...
0
votes
0
answers
12
views
How to compute "unbiased mean" in multilevel framework
I need to compute unbiased mean based on a daily diary data (variables are measured repeatedly over several days) using multilevel modeling. I found a few papers mentioned "unbiased mean" (...
0
votes
0
answers
54
views
Flutter-multilevel Combobox value fetching from api state and city
First ComboBox contains a list of States(provinces)
Combobox(
isExpanded: true,
placeholder: const Text("Select State..."),...
1
vote
1
answer
144
views
Pandas : creating multi-level table or sub table
I have data in dictionary format in a list as :
data_dict = [{
"exchange": "binance",
"base": "kp3r",
"quote": "busd",
"...
0
votes
0
answers
24
views
R: mixed model with time series data, repeated measurement of predictors
I am trying to run a mixed effects model that uses time as a fixed effect and some covariate variables.
The repeated measures of mean score of depression (=depr) is the dependent variable. We measured ...
1
vote
1
answer
40
views
Sub setting a multi level dataframe by the top values for each second level index in python
I have a multilevel index dataframe that looks like the image below. I have sorted the second level index on the higher of the perc_viewed column. So for each 1st level index, the higher of Male(M) or ...
-1
votes
1
answer
37
views
two-level paged memory exercise
Good morning everyone!
I'm struggling with an exercise of multilevel memory. Could someone help me in resolving it?
Consider a 2-level paged memory, with a size of 256MB, addressed to the byte and ...
2
votes
1
answer
241
views
Latex Error: Counter too large: Latex multilevel list
I am using multilevel list in latex with the following:
\documentclass[10pt]{article}
\usepackage{enumerate,etaremune}
\usepackage{amssymb,bibentry}
\usepackage{epstopdf}
\usepackage{paralist, soul}
\...
0
votes
1
answer
68
views
Reordering Multilevel Number in ASP.NET C#
DataTable columns selected from SQL as following:
id
level_0
level_1
level_2
description
114
1
0
0
description 1
115
1
1
0
description 2
116
1
1
1
description 3
117
1
1
2
description 4
and so on....
4
votes
1
answer
731
views
model failed to converge or not in r (lme4)
(the data is not my data, but from stack overflow website)
library(lme4)
read.table(textConnection("duration season sites effect
4d mon s1 7305.91
...
1
vote
1
answer
29
views
Perform a calculation as a new column on multiindex dataframe
I have the following multiindex dataframe:
MSISDN_COUNT
NAME DIM1 SEGMENT
JAN22 N Detractor 307
...
0
votes
1
answer
30
views
How do I check what R used as reference level for my dichotomous outcome in a GEE analysis (using geepack)?
I've got clustered patient data of 700 patients (clustered into two groups for two different hospitals). I'm trying to figure out if a certain cardiovacsular risk factor exposure (factor with 3 levels:...
0
votes
0
answers
40
views
allFit() function and lmer() function gives contrary results on convergence in r
I ran the multilevel model, and it does not give any convergence warning message. so I thought it is converged.
Linear mixed model fit by REML ['lmerModLmerTest']
Formula: y ~ 1 + con + catbtw + (1 | ...
3
votes
1
answer
614
views
How can I know whether the model is converged or failed to converge in lme4 without warning message in r?
duplicated
For example,
I can assess whether this multilevel model is a singular fit or not by
using isSingular() function.
Likewise, is there any way that I can know whether this model is converged ...
0
votes
0
answers
28
views
assessing convergence failure in lme4() without warning message
For example,
I can assess whether this multilevel model is a singular fit or not by
using isSingular() function.
Likewise, is there any way that I can know whether this model is converged or failed to ...
2
votes
1
answer
1k
views
lme4 "optimizer (nloptwrap) convergence code: 0 (OK)" but no convergence warning
I ran multilevel model using lme4 package, and results was like this:
Linear mixed model fit by REML. t-tests use Satterthwaite's method ['lmerModLmerTest']
Formula: y ~ 1 + con + ev1 + ev2 + ev1:con +...
0
votes
2
answers
94
views
Swift - How to Change Multi-Level JSON Struct Single Element Value on Condition
I have multi-level Struct that converts complex JSON data to a Struct. What I am struggling is to change the dataStruct.group.point.presentValue element value on condition.
var dataStruct : DataStruct ...
1
vote
2
answers
533
views
how to extract the random effect in multilevel modeling using lmer in r?
For example, this is the result of certain multilevel analysis
MLM1<-lmer(y ~ 1 + con + ev1 + ev2 + (1 | pid),data=dat_ind)
Linear mixed model fit by REML. t-tests use Satterthwaite's method ['...