Skip to main content
1 vote
1 answer
32 views

glmmTMB issue with number of observations and groups

I have a dataset with 125 animals across 3 sites and 100500 observations. Both show up properly when looking at the structure of the data but when I run the model with an updated data frame (I added a ...
Leyna Stemle's user avatar
0 votes
0 answers
9 views

Logistic regression variables correlation but low GVIF

I'm making a logistic regression model to predict female presence on boards in tech SMEs. I was going to take out companies with only 1 employee, as they don't have boards, but my supervisor told me ...
Anya's user avatar
  • 1
1 vote
1 answer
44 views

R: predict.glm for a logistic input produces a linear model [duplicate]

I've got a bit of a headscratcher from what I thought was going to be a routine fit. The logistic regression model I fit through the glm function instead gives a linear model when I use the predict ...
Ingolifs's user avatar
  • 339
0 votes
1 answer
64 views

Why is glmer function for logistic regression taking so long to run in R?

I am running a multiple logistic regression model. The dataset has ~350,000 observations, with the outcome being a binary 0/1 dichotomous variable. Most predictors are also dichotomous but there are ...
flailing-in-r's user avatar
0 votes
0 answers
30 views

rms::pentrace() grid set-up

In the R package rms, the pentrace() function enables penalized maximum likelihood estimation on a regression model that was initially fitted using unpenalized methods. The function needs a grid of ...
user167591's user avatar
1 vote
1 answer
73 views

Offsetting in rms::lrm ... error: sformula not found? [duplicate]

I am trying to fit a model into an lrm framework so I can bootstrap it with validate. The model has already been developed elsewhere. However, when I use an offset term to account for coefficients ...
Rover Eye's user avatar
  • 249
0 votes
1 answer
45 views

Transition from frequentist logistic regression to Bayesian logistic regression

I have been trying to solve this issue with my code for a few weeks now. Ultimately, I need the ParameterEstimates and OddsRatios tables as output. When I try to run a frequentist logistic regression ...
guas's user avatar
  • 1
0 votes
0 answers
39 views

Implementing survey weights in statsmodels OrderedModel ordinal logistic regression

I am trying to run an ordinal logistic regression on survey data and implementing existing survey weights (stored in a column in the dataframe) in the model. I am using statsmodels.miscmodels....
Guro's user avatar
  • 1
1 vote
1 answer
54 views

Do Evaluate process in Palantir Foundry Model Training parameters (mean, sd) from "Train data" to "Test data"?

If I understand the process correctly, when scaling test data in machine learning, you should use the scaling parameters (like mean and standard deviation) learned from the training data to transform ...
NewYorkBagel's user avatar
0 votes
0 answers
29 views

Partial derivative of logistic function for Levenberg-Marquardt

I am trying to write code that will fit logistic function to set of data. I am using Levenberg-Marquardt routine (as given in Numerical Recipes 3rd edition) and that requires me to supply a function ...
martin's user avatar
  • 2,658
0 votes
0 answers
45 views

"param = glm" gave a singular matrix warning while "param = ref" did not

I'm conducting a multinomial logistic regression model using proc logistic in SAS with around 3.6 million observations, an outcome with 5 levels, and dozens of categorical predictors. I had no issue ...
黃祐谷's user avatar
2 votes
2 answers
61 views

How to make a probability figure using a logistic regression?

I am trying to remake this figure with my data. I have 2 binary factors (P treatment & Embryo_Presence_vs._Absence) and 1 continuous value (Final_Size). Here is my data: print.data.frame(x[c(&...
bribina's user avatar
  • 89
2 votes
1 answer
86 views

Trying to understand differences in weighted logistic regression outputs between Statsmodels and R's survey & srvyr packages

I have a fictional weighted survey dataset that contains information about respondents' car colors and their response to the question "I enjoy driving fast." I would like to perform a ...
KBurchfiel's user avatar
0 votes
1 answer
118 views

Issues using GTSummary with Survey Package: Variable Column not found

So, I am running a logistic regression analysis and I finished using the survey package. Everything went smoothely. Now, I am trying to make tables using GT Summary and running into major issues. I ...
user29407182's user avatar
0 votes
1 answer
108 views

Format and significant figures of p-values in tbl_regression

I'm using tbl_regression to generate a table of results for a multiple logistic regression model. However, I'm running into trouble formatting the p-values. When I run this code: t1 <- ...
flailing-in-r's user avatar

15 30 50 per page
1
2 3 4 5
250