Questions tagged [multi-level]

529 questions
3
votes
1 answer

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 + ev2:con + (1 | pid) Data: dat_ind REML…
yoo
  • 491
  • 3
  • 10
3
votes
2 answers

Multilevel list in html

I want to have automatically created the numbering of a list of items in html, something like this: 1. Heading 1 Text 1.1 Heading 1.1 Text 2. Heading 2 Text 2.1 Heading 2.1 Text 2.2 Heading 2.2 Text It is the same as using Word, Latex…
jlanza
  • 1,208
  • 3
  • 23
  • 43
3
votes
1 answer

Terraform multi-level maps

I'm getting errors on "terraform plan" when trying to use a multi-level map (3+ levels) and can't seem to put my finger on the exact problem. The error: "The given value is not valid for variable "secgroups": element "bastion": attribute "direction"…
7Powell79
  • 33
  • 1
  • 4
3
votes
0 answers

Pandas Multilevel header, creating multiple rows for entries within a line

I have a multilevel column pandas dataframe with orders from an online retailer. Each line has info from a single order. This results in multiple items within the same row. I need to create a single row for each item sold in the orders. Because of…
pooski
  • 31
  • 2
3
votes
0 answers

Plotting multilayered grouped df with xlim

I have a plot with hourly values for 2019. When plotting with a sub-set of dates (January only) on the x-axis, my plot goes blank. I have a DF that I group on the row-axis based on Months and Hours from the time index, for a specific column 'SE3'.…
jjborje
  • 31
  • 2
3
votes
1 answer

Pandas reshape dataframe by adding a column level based on the value of another column

I have a pandas dataframe and I would like to add a column level to split specific columns (metric_a, metric_b, metric_c) into several subcolumns based on the value of another column (parameter). Current data format: participant param …
Étienne
  • 73
  • 1
  • 8
3
votes
0 answers

Estimating and plotting predicted probabilities from a multilevel ordinal logit (clmm)

I'm estimating a multilevel ordinal logit with one interaction term using clmm. The coefficients I get are interesting and statistically significant and I now want to compute and plot predicted probabilities. In doing so, it may be relevant to…
3
votes
1 answer

Why does my multi-index dataframe have duplicate values for indices?

I have the following pd.DataFrame called df: date cluster_label value 0 2018-11-14 02:16:22 0 1.5 1 2018-11-14 02:16:22 0 7.0 2 2018-11-14 02:16:22 …
sometimesiwritecode
  • 2,993
  • 7
  • 31
  • 69
3
votes
0 answers

How to get robust standard errors in multilevel quasipoisson using glmmpql in R

I am wondering if I can calculate robust standard errors and how I can do it (if possible) after multilevel quasipoisson using glmmpql. An example would be the following code: glmmPQL(nabs ~ gen + sco + pedu, random = ~ 1 | region/school, family =…
Young
  • 31
  • 4
3
votes
1 answer

React-router 4 in browser, how to make multilevel tab menu?

I'm using react-router-dom and react-router-config v4 in a browser app. I need to have a multilevel tab menu from graph of routes (each route either has a component to render or child routes to be shown as next level of menu). I'd like to get…
3
votes
1 answer

Correct way to scale for multilevel regression using lmer [R]

Let us say I have data for 300 firms(level 1) in 10 countries (level 2). The level 1 variables are PQ and size. Level 2 variable is the per capita GDP. library(lme4) set.seed(1) PQ <- runif(300,7,21) id <- (1:300) country <-…
Piyush Shah
  • 301
  • 4
  • 15
3
votes
1 answer

Specifying level-3 random intercept in R

I am using the lmer() function (lme4 package) in R for analysing a longitudinal study in which I measured 120 subjects, 6 times. In first instance, I specified a model like this: library(lme4) model1 = lmer(DV ~ 1 + X1*X2 + (1+X1|SubjectID),…
Stef
  • 33
  • 3
3
votes
1 answer

Plot binary frequencies across multiple levels in R

I have a dataset comprising participants binary answers to certain questions. This questions can have 3 different base conditions, and one 0/1 variation; that is, questions can be designated as 1.0, 1.1, 2.0,... and 3.1. My dataset holds each answer…
Lea_Casiraghi
  • 45
  • 1
  • 9
3
votes
1 answer

How to use nested problems in OpenMDAO 1.x?

I am trying to implement Collaborative Optimization & other multi-level architectures on OpenMDAO. I read here that this can be done by defining a separate solve_nonlinear method in the Subclass of Problem. The issue is that while running the…
Divya Manglam
  • 491
  • 2
  • 13
3
votes
1 answer

python pandas add a lower level column to multi_index dataframe

Could someone help me to achieve this task? I have data in multi-level data frame through the unstack() operation: Original df: Density Length Range Count 15k 0.60 small 555 15k 0.60 big 17 15k 1.80 small 141 15k …
user3287545
  • 1,911
  • 5
  • 20
  • 19