Say I have a value of 2
How can I convert this into say a [50,1] matrix such that it is the same size to do some addition/subtraction with my other matrix
Currently I only know using mat X = (2\2\2\2), but I don't want to have to forward slash 50 times, is there a faster way?
Related Posts with How to convert a scalar value into a large matrix
Power calculation for time to event studyHi, I am powering an RCT where the primary endpoint is time-to-response from initiation of treatmen…
Find out what variables in .dta file are used in .do fileI am reviewing an old project by someone who is no longer reachable. I have her .dta file with inpu…
Statistical powerI want to run a linear regression I have a 94 observations with 11 independent variables. I have the…
Refering to factor variables post estimationDear All, I want to use lincom to estimate total effect after running a regression of the form: C…
Generating ID variables in one data set based on some observations in another data setHI all, Please consider the following data set: data set_1 clear . input str8 respid byte str…
Subscribe to:
Post Comments (Atom)
0 Response to How to convert a scalar value into a large matrix
Post a Comment