search for: beta_0

Displaying 18 results from an estimated 18 matches for "beta_0".

Did you mean: beta10
2005 Dec 01
2
Minimizing a Function with three Parameters
Hi, I'm trying to get maximum likelihood estimates of \alpha, \beta_0 and \beta_1, this can be achieved by solving the following three equations: n / \alpha + \sum\limits_{i=1}^{n} ln(\psihat(i)) - \sum\limits_{i=1}^{n} ( ln(x_i + \psihat(i)) ) = 0 \alpha \sum\limits_{i=1}^{n} 1/(psihat(i)) - (\alpha+1) \sum\limits_{i=1}^{n} ( 1 / (x_i + \psihat(i)) ) = 0 \alph...
2004 Oct 08
1
nlme vs gls
...as I cannot turn up a solution anywhere else. I will frame it in the context of an R related issue. To illustrate the problem, consider student achievement test score data with multiple observations available for each student. One way of modeling these data might be Y_{ti} = (\mu + \mu_{i} ) + (\beta_0 + \beta_{i} )*(time) + \epsilon_{ti} ; t indexes time and i indexes student The nlme code is tt<-lme(reponse~time, data, random=~time|ID) With this, I can extract the growth rate for each individual in the data set. Conceptually this is the sum of the main effect for time plus the empirical...
2005 Nov 24
1
residuals in logistic regression model
In the logistic regression model, there is no residual log (pi/(1-pi)) = beta_0 + beta_1*X_1 + ..... But glm model will return residuals What is that? How to understand this? Can we put some residual in the logistic regression model by replacing pi with pi' (the estimated pi)? log (pi'/(1-pi')) = beta_0 + beta_1*X_1 + .....+ ei Thanks! [[alternative HTML v...
2015 Jun 10
2
Duda glmer
Hola, Tengo una base de datos con estructura jerárquica en la que quiero clasificar observaciones en distintas categorías. En el caso más simple, tengo una variable con dos categorías (variable Y1) y dentro de cada una de ellas hay otras dos categorías (variable Y2). Además tengo una variable explicativa cuantitativa discreta X. El banco de datos sería de este tipo: X Y1 Y2 5 0 1 9 0 0 2
2002 Dec 04
1
use of offset - clarification
Hi Listers, seems I have forgotten some basics re offset in glm: data: counts (y) from locations off different size (area), explanatory variable: x Model: y ~ x+offset(area) Predictions (pred) using Poisson errors plot(x,y) and points(x,pred) gives neat "line" of estimated values. However, for ease of understanding graphs are better using plot(x,y/area). Question: How to display
2007 Sep 13
1
Problem using xtable on an array
...ails on this: > str(model.mat) num [1:18, 1:4] -0.170 -0.304 -2.617 2.025 -1.610 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:18] "Amount: CP for VF" "Amount: CP for F" "Amount: CP for M" "Amount: RD for VF" ... ..$ : chr [1:4] "beta_0" "P-value" "beta_1" "P-value" It contains the following: > model.mat[1:2,] beta_0 P-value beta_1 P-value Amount: CP for VF -0.1702877 0.7716153 0.5148616 2.020602e-03 Amount: CP for F -0.3042522 0.1966133 0.8795982 6.058299e-...
2010 Jan 25
3
binary
Hi all Assume I have a data set xx; Group: 1=group1 ?, 2=group2 IQ: ?1= High, 0 =low fit <- glm(IQ ~group, data = xx, family = binomial()) summary(fit) Results ?????? ????????????Estimate Std. Error z value Pr(>|z|) (Intercept) -2.55456??? 0.210 -12.273? < 5e-16 *** group????????? 0.36180 ?????0.076?? 3.952 ????5.24e-05 *** the odd ratio = exp(0.36180 )= 1.435912 My question
2005 Mar 14
0
Parameters of Weibull regression
...wonder how to relate the estimated parameters to the Weibull regression model. Here is the model specification from Harrel, Regression Modeling Strategies, p. 422: S(t|X)=exp[-\alpha*t^\gamma exp(X\beta)] This is the model without intercept, and it is indicated that \alpha can be replaced by exp(\beta_0) in the model with intercept. Now I am puzzled by the fact that \alpha (or \alpha exp(X\beta)) is usually referred to as "scale parameter" in the context of the Weibull distribution. If this would be the case, I could get the Weibull scale from the \beta/\beta_0 estimators and I would ne...
2012 Nov 29
0
constrOptim
Dear R users, I am using the function "constrOptim" to minimize the -1*log-likelihood where \beta_i>=0 i=1,...,p and \beta_0 is unconstrained. I construct u_i as 0 0 0 ... 0 0 1 0 ... 0 0 0 1 ... 0 . . . ... 0 . . . ... 0 . . . ......
2011 Dec 01
2
how to get inflection point in binomial glm
Dear All, I have a binomial response with one continuous predictor (d) and one factor (g) (8 levels dummy-coded). glm(resp~d*g, data, family=binomial) Y=b0+b1*X1+b2*X2 ... b7*X7 how can I get the inflection point per group, e.g., P(d)=.5 I would be grateful for any help. Thanks in advance, Ren?
2008 Jun 15
2
R vs SAS and HLM on multilevel analysis- basic question
Hi R users! I am trying to learn some multilevel analysis, but unfortunately i am now very confused. The reason: http://www.ats.ucla.edu/stat/hlm/seminars/hlm_mlm/mlm_hlm_seminar.htm http://www.ats.ucla.edu/stat/sas/seminars/sas_mlm/mlm_sas_seminar.htm and MlmSoftRev. pdf from mlmRev package. >From what i see, the first two links seem to declare the level one variable as a random part (i
2012 Jan 07
2
glm or transformation of the response?
Hi Dr. Snow, I am a graduate student working on analyzing data for my thesis and came across your post on an R forum: The default link function for the glm poisson family is a log link, which means that it is fitting the model: log(mu) ~ b0 + b1 * x But the data that you generate is based on a linear link. Therefore your glm analysis does not match with how the data was generated
2011 Nov 14
0
aov output question
Hello, I currently get anova results out of the aov function (see below) I use the model.tables and I believe it gives me back the model parameters of the fit (betas), however I don't see the intercept (beta_0) and don't understand what the "rep" output means and there is no description in the documentation. Another question: is there a function that outputs the results in a more meaningful way e.g. show the percentage of variation of each factor towards the response I believe the formula...
2012 Jun 28
0
How to calculate Confidence Interval for a prediction using Partial Regression?
...- I regressed y to A, and calculated the residuals (e_y) (reg1) - I regressed x to A, and calculated the residuals (e_x) (reg2) - I regressed e_y to e_x (reg5) It looks like this: y = a_0 + a_1 A (reg1) x = b_0 + b_1 A (reg2) e_y = y - (a_0 + a_1 A) (3) e_x = x - (b_0 + b_1 A) (4) e_y = beta_0 + beta_1 e_x (reg5) Then, to predict a y_0 from a new x_0 and A_0, we would: Calculate e_x0 with the equation (4). Calculate e_y0 with the equation (reg5) and then: y_0 = e_y0 + (a_0 + a_1 A_0) Now, I would like to know how different in Area (A) must be two new observations with the same x_0 value...
2013 Apr 30
0
Ridge regression
...505e-01 -4.461005e-02 -1.728046e-09 -5.154932e-04 Now, by changing my data set(final), I repeat the process 100 times and obtain 100 such vectors which I store as 100 rows in a 100X5 matrix: matrix[i,]=coef(reg)[best,] (i varying from 1 to 100) Now my final estimates for the beta's are: Beta_0=median(matrix[,1]) Beta_1=median(matrix[,2]) Beta_2=median(matrix[,3]) Beta_3=median(matrix[,4]) Beta_4=median(matrix[,5]) I want to find the p-values of each of the estimated beta's. I am confused how to extract these p values in R (may be we need to go back to the reg= lm.ridge model corresp...
2011 May 01
1
Simulation Questions
I have the following script for generating a dataset. It works like a champ except for a couple of things. 1. I need the variables "itbs" and "map" to be negatively correlated with the binomial variable "lunch" (around -0.21 and -0.24, respectively). The binomial variable "lunch" needs to remain unchanged. 2. While my generated variables do come out
2008 Aug 13
3
issue building dataframes with matrices.
Hello, Is this a bug or a feature? I am using R 2.7.1 on Apple OS X. > y <- matrix(1:3,nrow=3) # y is a single-column matrix > df <-data.frame(x=1:3,y=y) > sapply(df,data.class) x y "numeric" "numeric" > df$yy <- y > sapply(df,data.class) x y yy "numeric" "numeric" "matrix"
2010 Feb 05
1
Using coxph with Gompertz-distributed survival data.
Dear list: I am attempting to use what I thought would be a pretty straightforward practical application of Cox regression. I figure users of the survival package must have come across this problem before, so I would like to ask you how you dealt with it. I have set up an illustrative example and included it at the end of this post. I took a sample of 100 data points from each of two populations