multi-level

covariance structure for multilevel modelling

旧街凉风 提交于 2019-12-12 14:57:05
问题 I have a multilevel repeated measures dataset of around 300 patients each with up to 10 repeated measures predicting troponin rise. There are other variables in the dataset, but I haven't included them here. I am trying to use nlme to create a random slope, random intercept model where effects vary between patients, and effect of time is different in different patients. When I try to introduce a first-order covariance structure to allow for the correlation of measurements due to time I get

How to setup multi-level MDO formulation with openmdao 1.x?

匆匆过客 提交于 2019-12-11 18:12:12
问题 As an openmdao 1.x problem handles only one driver and as optimizers are still supposed to be drivers, how a multi-level formulation could be implemented? Should I use two problems? Should I call an optimizer directly within a solve_nonlinear component method? Thanks. 回答1: There have been some changes, and Problem is no longer a system. The best way to do this now is to create a Component that contains the sub-problem, tells it when to run, and passes data in and out. See example here: How to

Dynamic, multi-level, numbered list using Excel formula

你。 提交于 2019-12-10 00:18:25
问题 Folks, I've managed to create a dynamic, multi-level, numbered list only using excel formula. This working correctly and I thought I'd share the result. My only question is if someone wants to take this and try to simplify it. I can't seem to upload an example sheet (first time posting). Edit I'm using a table called tbOOA, with 2 columns, Choose Level and Result. To use the formula, copy each line of the coded section below that does not start with > and copy it into one single (long)

asp.net databound menu multilevel

徘徊边缘 提交于 2019-12-09 07:16:14
问题 I am currently using an asp.net menu control to load from a table parent/child items. The problem I am having is that if the child has another child. My code is kindof static in that sense and I can't seem to find a better or "the" way to do it. I have seen sitemap as datasources but i don't need a sitemap and feel that would just be overkill for what I need to achieve. foreach (ClassName option in list) { MenuItem module = new MenuItem(option.Description.ToLower(), "", "", option.Url + "

php display multilevel treenode menu

☆樱花仙子☆ 提交于 2019-12-08 11:58:48
问题 How do I display this structure into a multi-level menu? Here's the structure: array 0 => array 'product_category_code' => string 'bracelets' (length=9) 'product_category_desc' => string 'Bracelets' (length=9) 'parent_node' => string '' (length=0) 'inactive' => string '0' (length=1) 'sort' => string '0' (length=1) 'created_by' => string '1' (length=1) 'created_date' => string '2014-03-14 22:04:08' (length=19) 'modified_by' => string '1' (length=1) 'modified_date' => string '2014-03-14 22:09

Multi-Level MYSQL Query In One Select Statement

安稳与你 提交于 2019-12-08 03:33:15
问题 Pretty straightforward SQL question here - I have three levels of data spread out over three tables. Table 1- Listings , Table 2 - Interests , Table 3 - Messages Table 1 -> Table 2, and Table 2 -> Table 3 have a One-To-Many Relationship There will always be listings, but there may or may not be interests for each listing, and there may or may not be messages for each interest. What I want to do is select all the information in 1 Select Statement in order to avoid multiple database calls. I

Meaning of “trait” in MCMCglmm

你。 提交于 2019-12-07 12:53:36
问题 Like in this post I'm struggling with the notation of MCMCglmm , especially what is meant by trait . My code ist the following library("MCMCglmm") set.seed(123) y <- sample(letters[1:3], size = 100, replace = TRUE) x <- rnorm(100) id <- rep(1:10, each = 10) dat <- data.frame(y, x, id) mod <- MCMCglmm(fixed = y ~ x, random = ~us(x):id, data = dat, family = "categorical") Which gives me the error message For error structures involving catgeorical data with more than 2 categories pleasue use

Best Practices for Using Multi Level HashMap in Java

筅森魡賤 提交于 2019-12-07 09:30:07
问题 We have a situation where we are ending up using multi-level hash maps; that is, a hash map inside of a hash map, three or four levels deep. Instinctively this felt wrong somewhere. I have read posts here that talks about how to iterate/use a multi-level hash map, but hardly any of them say what is the best practice for this. Why are multi level hash maps bad, and what would be the better design, if any? Here is the sample design of multi-level hash maps that we have: Map<String, Object1>

Multi-level regression model on multiply imputed data set in R (Amelia, zelig, lme4)

*爱你&永不变心* 提交于 2019-12-05 07:28:32
I am trying to run a multi-level model on multiply imputed data (created with Amelia); the sample is based on a clustered sample with group = 24, N= 150. library("ZeligMultilevel") ML.model.0 <- zelig(dv~1 + tag(1|group), model="ls.mixed", data=a.out$imputations) summary(ML.model.0) This code produces the following error code: Error in object[[1]]$result$call : $ operator not defined for this S4 class If I run a OLS regression, it works: model.0 <- zelig(dv~1, model="ls", data=a.out$imputations) m.0 <- coef(summary(model.0)) print(m.0, digits = 2) Value Std. Error t-stat p-value [1,] 45 0.34

overriding abstract methods in an inherited abstract class

此生再无相见时 提交于 2019-12-04 03:12:29
Okay so basically I have the following problem: I'm trying to have an abstract class inherit another abstract class that has an abstract method, but I don't want to implement the abstract method in either of them because a third class inherits from both of them: public abstract class Command { public abstract object execute(); } public abstract class Binary : Command { public abstract object execute(); //the issue is here } public class Multiply : Binary { public override object execute() { //do stuff } } I'm trying to separate binary commands from unary commands but don't want to/can't